Generating Permutations and Combinations

ثبت نشده
چکیده

We consider permutations of {1, 2, . . . , n} in which each integer is given a direction; such permutations are called directed permutations. An integer k in a directed permutation is called mobile of its arrow points to a smaller integer adjacent to it. For example, for → 3 → 2 ← 5 → 4 → 6 → 1 , the integers 3, 5, and 6 are mobile. It follows that 1 can never be mobile since there is no integer in {1, 2, . . . , n} smaller than 1. The integer n is mobile, except two cases: (i) n is the first integer and its arrow points to the left, i.e., ← n · · · ; (ii) n is the last integer and its arrow points to the right, i.e., · · · n .

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Multiset Permutations in Lexicographic Order

In a previous work [12], we proposed a method for generating permutations in lexicographic order. In this study, we extend it to generate multiset permutations. A multiset is a collection of items that are not necessarily distinct. The guideline of the extension is to skip, as soon as possible, those partially-formed permutations that are less than or equal to the latest generated eligible perm...

متن کامل

On Random and Adaptive Parallel Generation of Combinatorial Objects

This paper describes functions mapping the interval [0.. l) into the set ofcombinatorial objects ofcertain kind, e.g. permutations, combinations, binary and t-ary trees, subsets, variations, combinations with repetitions, permutations of combinations and composition of integers. These mappings can be used for generating these objects at random, with equal probability of each object to be chosen...

متن کامل

Probability Generating Functions for Sattolo’s Algorithm

In 1986 S. Sattolo introduced a simple algorithm for uniform random generation of cyclic permutations on a fixed number of symbols. Recently, H. Prodinger analysed two important random variables associated with the algorithm, and found their mean and variance. H. Mahmoud extended Prodinger’s analysis by finding limit laws for the same two random variables.The present article, starting from the ...

متن کامل

Generating restricted classes of involutions, Bell and Stirling permutations

We present a recursive generating algorithm for unrestricted permutations which is based on both the decomposition of a permutation as a product of transpositions and that as a union of disjoint cycles. It generates permutations at each recursive step and slight modifications of it produce generating algorithms for Bell permutations and involutions. Further refinements yield algorithms for thes...

متن کامل

On Generating Permutations Under User-Defined Constraints

In this paper, a method to generate permutations of a string under a set of constraints decided by the user is presented. The required permutations are generated without generating all the permutations. Keywords— Permutations; Algorithm; Matrices; Constraints; Determinants Full Text: http://www.ijcsmc.com/docs/papers/February2014/V3I2201414.pdf

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005